<?php

class Class_breadcrumbs {

   public $s;
   public $result;

   public function __construct($s) {
      $this->s = $s;
      $this->result = '';
   }

   public function start() {
      switch ($this->s) {
         case 'catalogo' : $this->result = "<li><a href='index.php'>Home</a></li><li class='active'>Catalogo</li>";
            break;
         case 'sobreProjeto' : $this->result = "<li><a href='index.php'>Home</a></li><li class='active'>Sobre o Projeto</li>";
            break;
         case 'refatorar' : $this->result = "<li><a href='index.php'>Home</a></li><li class='active'>Refatorar</li>";
            break;
         default : $this->result = "<li class='active'>Home</li>";
            break;
      }
   }

   public function getBreadcrumbs() {
      return $this->result;
   }

}
?>